// 统一请求路径前缀在libs/axios.js中修改
import { getRequest, postRequest, putRequest, deleteRequest, importRequest, getRequestWithNoToken } from '@/libs/axios';

// 获取需求数据 
export const getNeedList = (params) => {
    return getRequest('/need/getByCondition', params)
}
// 获取需求数据 待审核
export const getNeedWaitList = (params) => {
    return getRequest('/need/getWaitList', params)
}
// 审批需求
export const auditNeed = (ids, params) => {
    return postRequest(`/need/auditByIds/${ids}`, params)
}
//根据id获取需求
export const getNeedById = (id, params) => {
    return getRequest(`/need/get/${id}`, params)
}
//获取当天的数据
export const getIperStatisticsTodayData = ( params) => {
    return getRequest(`/need/getIperStatisticsTodayData`, params)
}
//查询图标数据
export const getIperStatisticsChartData = ( params) => {
    return getRequest(`/need/getIperStatisticsChartData`, params)
}
//查询表格数据
export const getIperStatisticsTableData = (params) => {
    return getRequest(`/need/getIperStatisticsTableData`, params)
}
